import { instance, request } from "./request";
//获取代号
export const getCountryAbbr = () => {
  return request({
    url: "/index/countryAbbr",
    method: "get",
  });
};
//新增商品
export const addProductSku = (data) => {
  return instance({
    url: "/sku/add",
    method: "post",
    data,
  });
};

//获取列表
export const getProductSkuList = () => {
  return instance({
    url: "/sku/skuList",
    method: "get",
  });
};

//删除产品
export const deleteProductSku = (data) => {
  return instance({
    url: "/sku/delete",
    method: "post",
    data,
  });
};

//修改产品
export const updateProductSku = (data) => {
  return instance({
    url: "/sku/update",
    method: "post",
    data,
  });
};

//excel下单
export const skuForm = (data) => {
  return instance({
    url: "/Sku/skuForm",
    method: "post",
    data,
  });
};

//编辑前获取信息
export const getUpdateInfo = (data) => {
  return instance({
    url: "/sku/getUpdateInfo",
    method: "post",
    data,
  });
};
